Skip to content

feat(profile): add profile clear command - #120

Merged
bougyman merged 1 commit into
mainfrom
CRY-46-profile-clear
Aug 16, 2026
Merged

feat(profile): add profile clear command#120
bougyman merged 1 commit into
mainfrom
CRY-46-profile-clear

Conversation

@bougyman

Copy link
Copy Markdown
Member

Summary

  • Adds lc profile clear — a zero-argument command that deactivates the currently active profile without deleting it
  • Useful for "parking" a profile when no team/project default is wanted, without losing the saved bundle
  • Safe to call with no active profile (no-op); always returns :ok

Changes

  • LinearCli.Profiles.clear/0: single UPDATE profiles SET active = 0 statement, no transaction needed
  • LinearCli.CLI: Optimus subcommand spec for clear (no args) + dispatch clause [:profile, :clear]
  • LinearCli.CLI.Commands.profile_clear/1: calls Profiles.clear() and prints confirmation
  • 3 new unit tests covering: deactivates active profile, no-op with no active profile, no-op with no profiles

Test plan

  • mix test passes (3 new clear/0 tests all pass; only pre-existing git env failures remain)
  • mix compile --warnings-as-errors clean
  • lc profile clear clears the active profile
  • lc profile clear with no active profile prints confirmation without error

Closes https://linear.app/cryptokairos/issue/CRY-46/featprofile-deactivate-a-profile-without-deleting-it

🤖 Generated with Claude Code

Adds `lc profile clear` — a zero-argument command that sets
active = 0 for whichever profile is currently active, without
deleting it. Safe to call with no active profile (no-op).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 16, 2026 13:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bougyman
bougyman merged commit 45cce6f into main Aug 16, 2026
2 checks passed
@bougyman
bougyman deleted the CRY-46-profile-clear branch August 16, 2026 13:52
bougyman pushed a commit that referenced this pull request Aug 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.9.0](v1.8.0...v1.9.0)
(2026-08-16)


### Features

* **profile:** add profile clear command
([#120](#120))
([45cce6f](45cce6f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants